package com.gite.nouette.admin.implementation.integrator.builder;

import com.gite.nouette.admin.contract.integrator.builder.IBuilderHandlerModule;
import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;
import com.gite.nouette.admin.contract.model.IHandlerModule;

public abstract class AbstractBuilderHandlerModule extends AbstractBuilder
		implements IBuilderHandlerModule {

	private IHandlerModule product;

	public AbstractBuilderHandlerModule(IFactoryModel factoryModel) {
		super(factoryModel);
	}

	@Override
	public IHandlerModule getProduct() {
		return this.product;
	}

	private void setProduct(IHandlerModule product) {
		this.product = product;
	}

	@Override
	public void createNewProduct() {
		setProduct(getFactoryModel().getHandlerModule());
	}
}
